package main

import (
	"fmt"
)

// Sayer 接口
type Sayer interface {
	say()
}

// Runner 接口
type Runnner interface {
	run()
}

type Dong struct {
	name string
}

// 实现Sayer接口
func (d Dong) say() {
	fmt.Printf("%s汪汪汪叫\n", d.name)
}

// 实现Runner接口
func (d Dong) run() {
	fmt.Printf("%s吐舌头跑\n", d.name)
}

func main() {
	var s Sayer
	var r Runner

	var d = Dong{name: "旺财"}
	s = d
	s.say()
	r = d
	r.run()
}
